package com.ctrip.ec.api.admin.model.order;

import com.ctrip.ec.biz.entity.member.MemberEntity;
import com.ctrip.ec.biz.entity.order.OrderEntity;
import com.ctrip.ec.biz.entity.order.OrderGoodsEntity;

import java.util.List;

/**
 * Created by jiang on 2018/10/6.
 */
public class OrderDetailModel extends OrderEntity {
    public  OrderDetailModel(){}
    public  OrderDetailModel(OrderEntity entity){
        for(String col : entity.property().getColumns()){
            this.fieldValue(col,entity.fieldValue(col));
        }
    }

    public MemberEntity getMember() {
        return member;
    }

    public void setMember(MemberEntity member) {
        this.member = member;
    }

    private List<OrderGoodsEntity> goodsList;

    public List<OrderGoodsEntity> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<OrderGoodsEntity> goodsList) {
        this.goodsList = goodsList;
    }

    private MemberEntity member;


    private  String paymentName;

    public String getPaymentName() {
        return paymentName;
    }

    public void setPaymentName(String paymentName) {
        this.paymentName = paymentName;
    }
}
